﻿
namespace EasyIot.WinApp
{
    /// <summary>
    /// 窗体类型
    /// </summary>
    public enum FormCase
    {
        Form_Null_OffData,
        Form_Null_SyncData,
        Form_Load,
        Form_StandBy,
        Form_Login,
        Form_Put,
        Form_OPEN,
        Form_Get,    
        Form_Admin,          // 管理员后台
        Form_Box,           // 格口管理
        Form_Order
    }

    /// <summary>
    /// 页面跳转
    /// </summary>
    public enum RedirectType
    {
        Redirect_Null,
        Redirect_Pre,
        Redirect_Next,
        Redirect_Self,
        Redirect_Any,
    }

    /// <summary>
    /// 按键类型
    /// </summary>
    public enum KeyType
    {
        Key_NUMBER,
        Key_SPACE,
        Key_PERIOD,
        Key_ENTER,
        Key_ESC,
        Key_UP,
        Key_DOWN,
        Key_TEXTBOX_FORCECHANGE
    }

    public class KeyValue
    {
        // 文本框焦点切换
        public static string PIN_PRESSED_VK_0 = "0";
        public static string PIN_PRESSED_VK_1 = "1";
        public static string PIN_PRESSED_VK_2 = "2";
        public static string PIN_PRESSED_VK_3 = "3";
        public static string PIN_PRESSED_VK_4 = "4";
        public static string PIN_PRESSED_VK_5 = "5";
        public static string PIN_PRESSED_VK_6 = "6";
        public static string PIN_PRESSED_VK_7 = "7";
        public static string PIN_PRESSED_VK_8 = "8";
        public static string PIN_PRESSED_VK_9 = "9";
        public static string PIN_PRESSED_SPACE = "SPACE";
        public static string PIN_PRESSED_ENTER = "ENTER";
    }
}
